package com.run.spring.service;

import com.run.entity.User;
import com.run.spring.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @description:
 * @project springboot_demo
 * @author HeWenWen
 * @date 2024-09-13 16:15
 * @version 1.0
 */
@Service
public class UserService {

    @Autowired
    private UserMapper userMapper;

    public User getUserById(int id){
        return userMapper.findById(id);
    }

}
